package com.hollycrm.ahunicom.dwr.facade;





import java.util.List;

import com.hollycrm.ahunicom.sheet.maintenance.AutoSheetSendManager;
import com.hollycrm.springframework.factory.DefaultBeanFactory;
import com.hollycrm.unicom.BeanResource;
import com.hollycrm.unicom.sheet.code.CodeManager;
import com.hollycrm.unicom.usersupport.DepartmentTreeViewObject;


public class DwrFacade {
	public String validateRelatingInfo(String cid,String problemid){
		com.hollycrm.ahunicom.sheet.maintenance.AcceptRelatingInfoDaoManager acceptRelatingDaoInterface =(com.hollycrm.ahunicom.sheet.maintenance.AcceptRelatingInfoDaoManager)DefaultBeanFactory.getBean("relatingTreeType112Interface");
        String str=acceptRelatingDaoInterface.validateRelatingInfo(cid,problemid);
        return str;
        
	}
	/**
	 *
	 * @param str
	 * @return
	 */
	public String validateAutoSendInfo(String arr[]){
	//	AutoSheetSendManager autoSendInterface = (AutoSheetSendManager)DefaultBeanFactory.getBean("autoSendInterface");
	  //  return autoSendInterface.validateHave(arr);
		return"";
        
	}
	public String queryDepartmentInfo(String departmentID){
		String sr="";
		CodeManager cm = (CodeManager) DefaultBeanFactory.getBean(BeanResource.CODE_MANAGER);
	    DepartmentTreeViewObject deptmentTree=cm.getDepartment(departmentID);
	    if(deptmentTree.getType()==2){
	    	sr= "noSubNode";
	    }else if(deptmentTree.getType()==1){
	    	sr= "hasSubNode";
	    }
	    return sr;
	}
	



}
